]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Fix regression after mutter commit 254afc50223a707c3afa7c9f638681199f41809e
authorGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 6 Feb 2014 17:10:21 +0000 (18:10 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 6 Feb 2014 17:15:36 +0000 (18:15 +0100)
The "old and unused API" was not so unused after all :)

js/ui/workspaceThumbnail.js

index aab6a7e369843592800008efb7b051c17bb8a0fe..1b24e59f5c6d4327e1ead38774030a10d3c9b195 100644 (file)
@@ -804,22 +804,25 @@ const ThumbnailsBox = new Lang.Class({
             [newWorkspaceIndex, this._dropPlaceholderPos] = [this._dropPlaceholderPos, -1];
 
             // Nab all the windows below us.
-            let windows = global.get_window_actors().filter(function(win) {
+            let windows = global.get_window_actors().filter(function(winActor) {
                 // If the window is attached to an ancestor, we don't need/want to move it
-                if (!!win.meta_window.get_transient_for())
+                let window = winActor.meta_window;
+
+                if (window.get_transient_for() != null)
                     return false;
 
                 if (isWindow)
-                    return win.get_workspace() >= newWorkspaceIndex && win != source;
+                    return window.get_workspace() >= newWorkspaceIndex && winActor != source;
                 else
-                    return win.get_workspace() >= newWorkspaceIndex;
+                    return window.get_workspace() >= newWorkspaceIndex;
             });
 
             this._spliceIndex = newWorkspaceIndex;
 
             // ... move them down one.
-            windows.forEach(function(win) {
-                win.meta_window.change_workspace_by_index(win.get_workspace() + 1, true);
+            windows.forEach(function(winActor) {
+                let window = winActor.meta_window;
+                window.change_workspace_by_index(window.get_workspace() + 1, true);
             });
 
             if (isWindow)